<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>2-6 纵向超链接组</title>
  <style>
    a {
      text-decoration: none;
      color: black;
    }
    .link-group {
      display: flex;
      flex-direction: column; 
      width: 100px; 
    }
    .link-group a {
      padding: 10px 20px;
      background-color: pink;
      text-align: center; 
    }
    .link-group a:hover {
      background-color: black;
      color: white;
    }
  </style>
</head>
<body>
  <div class="link-group">
    <a href=" ">链接1</a >
    <a href="#">链接2</a >
    <a href="#">链接3</a >
    <a href="#">链接4</a >
  </div>
</body>
</html>